package pro.cherish.quartzlockdemo.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import pro.cherish.quartzlockdemo.entity.STimetask;
import pro.cherish.quartzlockdemo.mapper.STimetaskMapper;

/**
 * @author 创建人：lys
 * @version 版本号：V1.0
 * <p>
 * ***************************修订记录************************************
 * 2020-08-08 lys 创建该类功能。
 * **********************************************************************
 * </p>
 * @ClassName 类名：STimetaskService
 * @Description 功能说明：
 * <p>
 *
 * </p>
 * **********************************************************************
 * @date 创建日期： 2020-08-08 lys
 */
@Slf4j
@Service
public class STimetaskService extends ServiceImpl<STimetaskMapper, STimetask> {
    public STimetask selectByPrimaryKey(String singleId) {
        return this.baseMapper.selectById(singleId);
    }

    public int insertSelective(STimetask record) {
        return this.baseMapper.insert(record);
    }

    public void deleteByPrimaryKey(String singleId) {
        this.removeById(singleId);
    }

    public int updateByPrimaryKeySelective(STimetask sTimetask) {
        return this.baseMapper.updateById(sTimetask);
    }
}
